package org.dromara.config.domain.bo;

import org.dromara.config.domain.KyWarehouses;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * warehouse业务对象 ky_warehouses
 *
 * @author kuyu
 * @date 2023-12-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = KyWarehouses.class, reverseConvertGenerate = false)
public class KyWarehousesBo extends BaseEntity {

    /**
     * 编号
     */
    @NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户
     */
    @NotNull(message = "用户不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long mid;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String password;

    /**
     * 图片
     */
    @NotBlank(message = "图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String logo;

    /**
     * 入库审核
     */
    @NotNull(message = "入库审核不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer approveIn;

    /**
     * 出库审核
     */
    @NotNull(message = "出库审核不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer approveOut;

    /**
     * 省份
     */
    @NotNull(message = "省份不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long provinceId;

    /**
     * 城市
     */
    @NotNull(message = "城市不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long cityId;

    /**
     * 地区
     */
    @NotNull(message = "地区不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long districtId;

    /**
     * 地址
     */
    @NotBlank(message = "地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String adress;

    /**
     * 编辑确认
     */
    @NotNull(message = "编辑确认不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer modifyConfirm;

    /**
     * 
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mark;

    /**
     * 锁定状态：1是0否
     */
    @NotNull(message = "锁定状态：1是0否不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isLocked;

    /**
     * 
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String qrcode;

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date deletedAt;

    /**
     * 二维码本地地址：
     */
    @NotBlank(message = "二维码本地地址：不能为空", groups = { AddGroup.class, EditGroup.class })
    private String localPath;


}
